Skip to content

Add PclIO.Scene adapter and align the repository with the ecosystem standard - #94

Merged
mahach666 merged 1 commit into
mainfrom
codex/architecture-standard
Nov 25, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/architecture-standard

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

Stacked on #93 (base set to that branch; retargets to main when it merges).

What

Aligns the repository with the IOExtend ecosystem architecture: engines are leaves, adapters live with the engine and depend only on the neutral scene contract.

Audit result

Already conforming: managed .NET 8/10 engine with no package dependencies, content-based detection, CLI, clean-room readers, sample tests behind PCLIO_TEST_FILES, SECURITY.md. Gaps closed here:

  • PclIO.Scene adapter (new package): PclSceneReader / PclSceneOptions / PclSceneResult. One model, one element per scan with the engine's scan id as SourceId (pinned by a test), non-indexed Points geometry in metres, normals when every point of a scan has one, scan properties as text. A 1,000,000-point default cap follows the IOScene small-cloud scope; MetresPerUnit handles non-metre sources. Diagnostics report dropped per-point colour/intensity/classification (not part of IOScene 0.1.0), capped points, incomplete normals, empty scans and reader warnings.
  • CLI: export --format scene (also inferred from .scene.json), diagnostics on standard error, rejects --no-transform, keeps the adapter cap unless --limit is given.
  • Packaging: IOScene [0.1.0, 0.2.0-0.0), exact engine pin because both ship on one tag, adapter nuspec checks in pack-release.ps1, shared icon, solution and central package versions updated.
  • CI: dotnet format --severity error gate as in the reference repos; pre-existing whitespace defects fixed; docs workflow and DocFX metadata cover the adapter.
  • Docs: new docs/scene.md (mapping, SourceFormat ids, diagnostics, limits); README, public-api, dependencies, index, getting-started and toc updated; CHANGELOG and third-party notices corrected.
  • Tests: 24 adapter tests and 4 CLI tests; the hygiene test now asserts the engine and CLI stay package-free while the adapter references only IOScene.

Verification

  • 2346 tests: 2328 pass, 6 skipped (environment), 12 fail — the six pre-existing real-file fixture issues reproduced on the base commit, unchanged here
  • Release build, pack (dependency ranges verified in the nupkg), DocFX with warnings as errors and the format gate: all green
  • CLI scene export verified end to end on a real PTG index

Follow-ups before first release

  • register the SourceFormat ids in the IOScene key registry (separate PR)
  • per-vertex colour is a declared additive item of the IOScene contract; the adapter can keep colour once it ships

@mahach666
mahach666 changed the base branch from codex/ptg-binary-header to main November 25, 2026 09:37
@mahach666
mahach666 merged commit 50da871 into main Nov 25, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant